extends "../33-3/33-3.gd"


var baseId = ""
var upText1 = "护盾释放效果翻倍"
var upText2 = "EMP伤害翻倍"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("<亡语>死亡时，弱驱散全体敌方单位的正面效果，并造成[驱散数量*雷击*50%]的技能伤害", "EMP")

func deathWord():
	.deathWord()
	for i in getAllChas(1):
		var num = 0
		for j in i.buffs:
			if not j.isNegetive and j.get("type") != config.EQUITYPE_EQUI and j.get("dispel") == 1:
				j.isDel = true
				num += 1
		if num > 0:
			azurHurtChara(i, num * att.mgiAtk * 0.5 * p4, sys.HurtType.WEAPON, sys.AtkType.SKILL, "EMP")
			
var p4 = 1
func upgrade():
	.upgrade()
	if upgraded == 1:
		p3 = 2
	if upgraded == 2:
		p4 = 2